Repository navigation
feat(bank): Bank Link wrapper over the native SDKs - #97
Conversation
Adds presentBankLink, resumeBankLink, handleBankLinkReturn and onBankLinkEvent on both bridges, mapping the native result variants and enum wire names on each platform. A listener receives only the fields its event allows, a declined presentation rejects the call, and link_id is required and nullable. Bank Link stays off (diditNativeSdkVersions.bankLink is false) until the native release that ships it is pinned. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Codex review ( 💡 Code reviewReviewed commit:
When Verdict: REQUEST CHANGES |
…the promise pending Resolve the presenting view controller on iOS and reject with the code and message Android uses when there is none. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Codex review ( 💡 Code reviewReviewed commit:
When a presenter exists but Verdict: REQUEST CHANGES |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Codex review ( 💡 Code reviewReviewed commit:
No additional findings in commit Verdict: APPROVE |
Problem
React Native apps had no standalone Bank Link entry point.
The first Android adapter was also written against a shape the native API does not expose: types from the wrong package, fields read off the result instead of its wrapped
success/exitvalues, and enum constants (OPENED) where JavaScript expects the contract's wire names (opened).A declined presentation left the promise unsettled (on iOS, native logs and never answers when it has no view controller), every payload key native sent reached listeners, and
link_idwas optional although both bridges send it asnullbefore the id is known.Solution
presentBankLink,resumeBankLink,handleBankLinkReturnandonBankLinkEvent, mapping native result variants and enum wire names on each platform.link_idis required and nullable.RCTPresentedViewController, main queue) and passes it to native asfrom:; with none it never calls native and rejectsbank_link/ "Bank Link presentation was declined.", the error Android uses. Resume does the same, retrying the lookup for up to 5 seconds first because a host resumes at start-up before a window may exist. The native call result is read untyped, so it compiles whether it returns nothing or a discardableBool, and afalse(nothing opened) rejects the same way.handleBankLinkReturnbefore resuming; the README unsubscribes infinally.diditNativeSdkVersions.bankLinkisfalse, so CI and consumers compile the stand-in adapter until the native release that ships Bank Link is pinned.Verification
src; CI runs the full suite, typecheck and builds.from:passed for present and resume) each failed when reverted.mainfollows this repository's privacy gate. feat(bank): Bank Link wrapper over the native SDKs #96 is closed once this one merges.Not in this change
bankLinktotrue, compiles the enabled Android adapter against it in CI, and adds the connect and renew proof on devices in the example app.🤖 Generated with Claude Code